
package com.jf.cloud.delivery.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.List;

/**
 * 指定条件包邮项DTO
 *
 * @author zz
 * @date 2020-12-07 15:10:01
 */
public class TransfeeFreeDTO{
    private static final long serialVersionUID = 1L;

    @Schema(description = "指定条件包邮项id" )
    private Long transfeeFreeId;

    @Schema(description = "运费模板id" )
    private Long transportId;

    @Schema(description = "包邮方式 （0 满x件/重量/体积包邮 1满金额包邮 2满x件/重量/体积且满金额包邮）" )
    private Integer freeType;

    @Schema(description = "需满金额" )
    private Long amount;

    @Schema(description = "包邮x件/重量/体积" )
    private Double piece;

    @Schema(description = "指定条件包邮城市项" ,required=true)
    private List<AreaDTO> freeCityList;

    public List<AreaDTO> getFreeCityList() {
        return freeCityList;
    }

    public void setFreeCityList(List<AreaDTO> freeCityList) {
        this.freeCityList = freeCityList;
    }

    public Long getTransfeeFreeId() {
        return transfeeFreeId;
    }

    public void setTransfeeFreeId(Long transfeeFreeId) {
        this.transfeeFreeId = transfeeFreeId;
    }

    public Long getTransportId() {
        return transportId;
    }

    public void setTransportId(Long transportId) {
        this.transportId = transportId;
    }

    public Integer getFreeType() {
        return freeType;
    }

    public void setFreeType(Integer freeType) {
        this.freeType = freeType;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public Double getPiece() {
        return piece;
    }

    public void setPiece(Double piece) {
        this.piece = piece;
    }

    @Override
    public String toString() {
        return "TransfeeFreeDTO{" +
                "transfeeFreeId=" + transfeeFreeId +
                ", transportId=" + transportId +
                ", freeType=" + freeType +
                ", amount=" + amount +
                ", piece=" + piece +
                ", freeCityList=" + freeCityList +
                '}';
    }
}
